<?/*******************************/$sql->query("delete from ".CFG_MYSQL_PREFIX."dispo where idPlayer not in (select id from ".CFG_MYSQL_PREFIX."player)");/*******************************/$cfg_params["liste_types"]=array();$types=explode("|",$GLOBALS["CONFIG"]["dispos"]["types"]);$i=0;foreach($types as $type){	if($type!=""){		$type=explode(";",$type);		$cfg_params["liste_types"][]=array($type[0],$type[1],$i);		$i++;	}}$t=mktime(8,0,0);$n=date("w");if($n==0) $n=7;if($n<3) $n=$n+7;$n=$n-3;$tsoa=$t-($n*24*3600);if(!isset($_REQUEST["tso"])) $tso=$tsoa;else $tso=$_REQUEST["tso"];$jours=array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");